/**
 * @(#)ImagenNoEncontradaException.java Jan 7, 2008
 *
 * Copyright (c) 2005-2010 Psiqueware S.A. de C.V. All Rights Reserved.
 * This software is the proprietary information Psiqueware S.A. de C.V.
 * Use is subject to license terms.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 *
 * <br/>Usuario : AngelElectrico
 * <br/>Creaci&oacute;n: Jan 7, 2008 - 10:24:15 AM
 * <br/>
 * <br/>
 * <br/><t5>Cambios :</t5>
 * <br/><b>Fecha | Autor  |  Cambios</b>
 * <ul>
 * <li>Jan 7, 2008 | <a href = "mailto:AngelElectrico@PsiqueWare.com">Angel El&eacute;ctrico</a> | Creaci&oacute;n del Objeto.</li>
 *
 * </ul>
 */

package com.psiqueware.alheli.exception;

/**
 * Excepci&oacute;n que sucede si El recurso gr&aacute;fico no ha podido localizarse..
 * <br/>Paquete Original: com.psiqueware.basico
 * <br/>Nombre  Original: ImagenNoEncontradaException
 * <br/><a href="ImagenNoEncontradaException.java.html"><i>Ver C&oacute;digo Fuente</i> </a>
 *
 * @author <a href="mailto:AngelElectrico@PsiqueWare.com">Angel El&eacute;ctrico</a>
 * @version Revision: 1.1 Jan 7, 2008 10:24:15 AM
 * @noinspection ClassWithoutNoArgConstructor, ClassWithoutLogger, ClassTooDeepInInheritanceTree, ClassWithTooManyConstructors, DeserializableClassInSecureContext, SerializableClassInSecureContext
 */

public final class ImagenNoEncontradaException extends RuntimeException
{

    /**
     * Object que nos puede proporcionar mas informaci&oacute;n sobre lo sucedido.
     */
    private Object m_object = null;

    /**
     * @noinspection FieldNameHidesFieldInSuperclass
     */
    public static final String STANDARD_MSG = "<error>El recurso gr&aacute;fico no ha podido localizarse.</error>";

    /**
     * Constructor for ImagenNoEncontradaException.
     */
    public ImagenNoEncontradaException()
    {
        super(STANDARD_MSG);
    }

    /**
     * Constructor for ImagenNoEncontradaException.
     *
     * @param message que se pretende contenga la excepci&oacute;n.
     */
    public ImagenNoEncontradaException(String message)
    {
        super(message);
    }

    /**
     * Constructor for ImagenNoEncontradaException.
     *
     * @param message que se pretende contenga la excepci&oacute;n.
     * @param o       objeto del error.
     */
    public ImagenNoEncontradaException(String message, Object o)
    {
        super(message);
        this.m_object = o;
    }

    /**
     * Constructor for ImagenNoEncontradaException.
     *
     * @param message que se pretende contenga la excepci&oacute;n.
     * @param cause   excepci&oacute;n que origin&oacute; esta.
     */
    public ImagenNoEncontradaException(String message, Throwable cause)
    {
        super(message, cause);

    }

    /**
     * Constructor for ImagenNoEncontradaException.
     *
     * @param message que se pretende contenga la excepci&oacute;n.
     * @param cause   excepci&oacute;n que origin&oacute; esta.
     * @param o       objeto del error.
     */
    public ImagenNoEncontradaException(String message, Throwable cause, Object o)
    {
        super(message, cause);
        this.m_object = o;

    }

    /**
     * Constructor for ImagenNoEncontradaException.
     *
     * @param cause excepci&oacute;n que origin&oacute; esta.
     */
    public ImagenNoEncontradaException(Throwable cause)
    {
        super(STANDARD_MSG, cause);
    }

    /**
     * Constructor for ImagenNoEncontradaException.
     *
     * @param cause excepci&oacute;n que origin&oacute; esta.
     * @param o     objeto del error.
     */
    public ImagenNoEncontradaException(Throwable cause, Object o)
    {
        super(STANDARD_MSG, cause);
        this.m_object = o;
    }

    /**
     * Convierte este {@link ImagenNoEncontradaException} a su representaci&oacute;n textual.
     *
     * @noinspection DuplicateStringLiteralInspection
     */
    public String toString()
    {

        StringBuffer sb = new StringBuffer();
        sb.append("\n<Instance Class = '").append(this.getClass()).append("'>\n");
        sb.append("\t<super>").append(super.toString()).append("</super>\n");
        sb.append("\t<object>").append(m_object).append("</object>\n");
        sb.append("</Instance>");
        return sb.toString();
    }

    /**
     * Devuelve el objeto que puede proporcionarnos mas informaci&oacute;n sobre el porque sucedi&oacute; esta
     * excepci&oacute;n.
     */
    public Object getObject()
    {
        return m_object;
    }

    /**
     * Establece el objeto que puede proporcionarnos mas informaci&oacute;n sobre el porque sucedi&oacute; esta
     * excepci&oacute;n.
     */
    public void setObject(Object object)
    {
        this.m_object = object;
    }
}

